//
//  UIView+Frame.h
//  HotPotNetForMerchant
//
//  Created by shepai on 16/11/3.
//  Copyright © 2016年 SuperDeveloper. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (HZFrame)

@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;
@property (nonatomic, assign) CGSize  size;
/** self.x + self.width */
@property (nonatomic, assign, readonly) CGFloat maxX;
/** self.y + self.height  */
@property (nonatomic, assign, readonly) CGFloat maxY;

//移除子视图
- (void)removeAllSubViews;

/**
 * 设置Layer圆角大小
 */
- (void)customCornerRadius:(CGFloat)radius;

/**
 * 设置Layer边框颜色,默认边框像素0.5f
 */
- (void)customBorderColor:(UIColor *)color;

/**
 *  @param height 给定的高度
 */
- (void)resetViewFrameWithHeight:(CGFloat)height;



@end
